package com.wind.plugin.login;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.startup.StartupActivity;
import org.jetbrains.annotations.NotNull;


import javax.swing.*;

public class MyPluginStartupActivity implements StartupActivity {
    @Override
    public void runActivity(@NotNull Project project) {
        // 在插件启动时显示登录对话框
        SwingUtilities.invokeLater(() -> {
            JFrame frame = new JFrame();
            LoginDialog dialog = new LoginDialog(frame);
            dialog.setVisible(true);
        });
    }
}
